package com.qyhl.party.party.study.subject;

import com.qyhl.webtv.commonlib.entity.news.NewsBean;
import com.qyhl.webtv.commonlib.entity.news.UnionBean;
import com.umeng.commonsdk.debug.I;

import java.util.List;

public class PartySubjectPresenter implements PartySubjectContract.PartySubjectPresenter {
    private PartySubjectContract.PartySubjectView mView;
    private PartySubjectModel mModel;

    public PartySubjectPresenter(PartySubjectContract.PartySubjectView mView) {
        this.mView = mView;
        this.mModel = new PartySubjectModel(this);
    }


    @Override
    public void getSub(String catalogId) {
        mModel.getSub(catalogId);
    }

    @Override
    public void getList(String InnerCode, String ID) {
        mModel.getList(InnerCode, ID);
    }

    @Override
    public void setSub(List<UnionBean> beanList) {
        mView.setSub(beanList);
    }

    @Override
    public void setList(List<NewsBean> beanList) {
        mView.setList(beanList);
    }

    @Override
    public void setError(String msg) {
        mView.setError(msg);
    }
}
